/**
 * Button
 * 
 * Oddnut Software
 * Copyright (c) 2010 Eric Ferraiuolo - http://eric.ferraiuolo.name
 * MIT License - http://www.opensource.org/licenses/mit-license.php
 */

button,
input[type=button],
input[type=submit],
input[type=reset],
a.button {
	position: relative;
	outline: 0;
	-moz-box-shadow: 0 1px 1px rgba(0,0,0,0.10);
	-webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.10);
	box-shadow: 0 1px 1px rgba(0,0,0,0.10);
	border: #bbb 1px solid;
	border-color: rgba(0,0,0,0.20);
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
	margin: 0;
	padding: 0 10px;
	width: auto;
	white-space: nowrap;
	display: inline-block;
	cursor: pointer;
	color: #222;
	color: rgba(0,0,0,0.95);
	background-color: #ddd;
	background-image: url(button_overlay.png);
	background-position: left top;
	background-repeat: repeat-x;
	text-decoration: none;
	text-align: center;
	text-shadow: 0 1px 0 rgba(255,255,255,0.50);
	font-size: 100%;
	line-height: 26px;
}
button,
input[type=button],
input[type=submit],
input[type=reset] {
	height: 28px;								/* button heights are odd */
}
a.button {
	height: 26px;
}

/**
 * Hover
 */

button:hover,
input[type=button]:hover,
input[type=submit]:hover,
input[type=reset]:hover,
a.button:hover {
	background-color: #ccc;
}

/**
 * Focus
 */

button:focus,
input[type=button]:focus,
input[type=submit]:focus,
input[type=reset]:focus,
a.button:focus {
	outline: 2px solid rgba(63, 152, 221, 0);	/* Safari needs an outline for box-shadow in tight places */
	-moz-outline: 1px solid rgb(63, 152, 221);	/* FF < 3.5 */
	-moz-outline-radius: 3px;					/* FF < 3.5 */
	-moz-box-shadow: 0 0 2px rgb(63, 152, 221);
	-webkit-box-shadow: 0 0 2px rgb(63, 152, 221);
	box-shadow: 0 0 2px rgb(63, 152, 221);
	-webkit-transition: -webkit-box-shadow 0.10s ease;
}


button::-moz-focus-inner,
input[type=button]::-moz-focus-inner,
input[type=submit]::-moz-focus-inner,
input[type=reset]::-moz-focus-inner {
	border: none;								/* FF inner-focus disabling */
}

/**
 * Active
 */

button:active,
input[type=button]:active,
input[type=submit]:active,
input[type=reset]:active,
a.button:active {
	top: 1px;
	background-color: #ccc;
}

/**
 * Default
 */

button.default,
input[type=button].default,
input[type=submit].default,
input[type=reset].default,
a.button.default {
	background-color: #ccc;
}

/**
 * Round
 */

button.round,
input[type=button].round,
input[type=submit].round,
input[type=reset].round,
a.button.round {
	-moz-border-radius: 28px;
	-webkit-border-radius: 28px;
	border-radius: 28px;
}

/**
 * Small
 */

button.small,
input[type=button].small,
input[type=submit].small,
input[type=reset].small,
a.button.small {
	font-size: 0.857em;
	line-height: 19px;
	height: 21px;
}
a.button.small {
	height: 19px;
}

/**
 * Large
 */

button.large,
input[type=button].large,
input[type=submit].large,
input[type=reset].large,
a.button.large {
	font-size: 1.286em;
	line-height: 33px;
	height: 35px;
	padding: 0 15px;
}
a.button.large {
	height: 33px;
}

/**
 * Huge
 */

button.huge,
input[type=button].huge,
input[type=submit].huge,
input[type=reset].huge,
a.button.huge {
	font-size: 2.000em;
	line-height: 40px;
	height: 42px;
	padding: 0 20px;
}
a.button.huge {
	height: 40px;
}

/**
 * Disabled
 */

button[disabled],
input[type=button][disabled],
input[type=submit][disabled],
input[type=reset][disabled],
a.button[disabled] {
	position: static				!important;
	outline: 0						!important;
	-moz-box-shadow: none			!important;
	-webkit-box-shadow: none		!important;
	border-color: #ddd				!important;
	border-color: rgba(0,0,0,0.10)	!important;
	cursor: default					!important;
	color: #777 					!important;
	color: rgba(0,0,0,0.50)			!important;
	background-color: #ededed		!important;
	background-image: none			!important;
}
